import 'dart:convert';
import 'package:dio/dio.dart';
import 'package:retrofit/http.dart';
import 'package:todo_project/generated/json/base/json_field.dart';
import 'package:todo_project/generated/json/bing_img_entity.g.dart';

@JsonSerializable()
class BingImgEntity {

	List<BingImgImages>? images;
	BingImgTooltips? tooltips;
  
  BingImgEntity();

  factory BingImgEntity.fromJson(Map<String, dynamic> json) => $BingImgEntityFromJson(json);

  Map<String, dynamic> toJson() => $BingImgEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class BingImgImages {

	String? startdate;
	String? fullstartdate;
	String? enddate;
	String? url;
	String? urlbase;
	String? copyright;
	String? copyrightlink;
	String? title;
	String? quiz;
	bool? wp;
	String? hsh;
	int? drk;
	int? top;
	int? bot;
	List<dynamic>? hs;
  
  BingImgImages();

  factory BingImgImages.fromJson(Map<String, dynamic> json) => $BingImgImagesFromJson(json);

  Map<String, dynamic> toJson() => $BingImgImagesToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class BingImgTooltips {

	String? loading;
	String? previous;
	String? next;
	String? walle;
	String? walls;
  
  BingImgTooltips();

  factory BingImgTooltips.fromJson(Map<String, dynamic> json) => $BingImgTooltipsFromJson(json);

  Map<String, dynamic> toJson() => $BingImgTooltipsToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}